function initCustomFile() {
	var _inputs = document.getElementsByTagName("input");
	for (var i= 0; i < _inputs.length; i++) {
		if(_inputs[i].className.indexOf("file-input-area") != -1) {
			var _file_input = _inputs[i];
			_file_input._fake_file_input = _inputs[i].parentNode.getElementsByTagName('input')[1];
			_file_input._fake_file_input.readOnly = true;
			_file_input.onchange = function() {
				this._fake_file_input.value = this.value;
			}
		}
	}
}
if (window.addEventListener)
	window.addEventListener("load", initCustomFile, false);
else if (window.attachEvent)
	window.attachEvent("onload", initCustomFile);
